﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            UDisk u1 = new UDisk("金士顿32G");
            Console.WriteLine(u1.Brand);
            u1.read();
            u1.write();

            Console.WriteLine();

            MoblieHardDisk m1 = new MoblieHardDisk("西部1000G");
            Console.WriteLine(m1.Brand);
            m1.read();
            m1.write();

            Console.WriteLine();

            Computer com = new Computer("华硕");
            com.Start();
            IUSB usb1 = u1;
            usb1.read();
            usb1.write();

            Console.WriteLine();

            IUSB usb2 = m1;
            usb2.read();
            usb2.write();
            com.End();
        }
    }
}
